/** * @description: 搜索款样式，无实际功能，仅做跳转使用 */
<template>
  <div class="search-wrapper" @click="toSearch">
    <van-search show-action shape="round" :placeholder="placeholderText">
      <template #action>
        <span>搜索</span>
      </template>
    </van-search>
  </div>
</template>

<script>
export default {
  name: 'Search',
  props: ['placeholderText'],
  methods: {
    toSearch() {
      this.$router.push({ path: '/search', query: { subId: this.$route.query.subId, ph: this.placeholderText } })
    },
  },
}
</script>

<style lang="scss" scoped>
::v-deep .van-field__control::-webkit-input-placeholder {
  color: #97979f;
  font-size: $fz14;
}
</style>
